<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <table id="work_approval_confdg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'ITEM_CODE',title:'类目名称',editor:{type:'combobox',options:{
                    method:'get',
                    url: '/sysAdmin/work_approval_conf/confType',
                    editable:false
                }},formatter: function(value,row,index){
                    return row.ITEM_NAME;
                }"></th>
                <th data-options="field:'APPROVALER_ID',title:'审批人',width: 20,editor:{type:'combobox',options:{
                    method:'get',
                    url: '/compent/util/teacherList',
                    mode:'remote',
                    multiple:true,
                    editable:false
                }},
                formatter: function(value,row,index){
                    return row.APPROVALER;
                }"></th>
                <th data-options="field:'CCER_ID',title:'抄送人',width: 20,editor:{type:'combobox',options:{
                    method:'get',
                    url: '/compent/util/teacherList',
                    mode:'remote',
                    multiple:true,
                    editable:false
                }},
                formatter: function(value,row,index){
                    return row.CCER;
                }"></th>
                <th data-options="field:'IS_DELETE',title:'是否有效',width: 20,editor:{type:'combobox',options:{
                    require:true,
                    data:[{'text':'有效','value':'N',selected:true},{'text':'失效','value':'Y'}]
                }},formatter: function(value,row,index){
                    if(value=='N') return '有效';
                    else return '失效'
                }"></th>
            </tr>
        </thead>
    </table>
    <script type="text/javascript">
        $(function(){
            var url = "/sysAdmin/work_approval_conf";
            initDatagridAdmin("work_approval_conf", url, 1, 1, 1, 1);
        })
    </script>

</body>
</html>